{# empty Twig template #}
{% extends'CNAMActimanBundle::layoutBody.html.twig' %}
{% block body %}
    <div class="row">
        <div class="col-lg-12">

        </div>
    </div><!-- /.row -->

    {% block content %}


        <div class="row">
            <ul class="breadcrumb" style="margin-bottom: 5px;">
                <li>
                    Vous êtes ici :  
                </li>
                <li>
                    <a href="#">Gestion procédures</a>  
                </li>
                <li>
                    <a href="#">Liste des procédures planifiables</a>  
                </li>
            </ul>
            <div class="col-lg-12">
                <div class="col-lg-12">
                    <h2>Liste des procédures planifiables</h2>
                    <hr align="center" width="90%" size="5">
                    <div class="col-lg-12">
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title">

                                </h3>
                            </div>

                            <div class="table-responsive">
                                <table class="table table-bordered table-hover tablesorter">

                                    <thead>

                                        <tr>
                                            <th>Procedure <i class="fa fa-sort"></i></th>
                                            <th>Responsable <i class="fa fa-sort"></i></th>
                                            <th>Date de Creation <i class="fa fa-sort"></i></th>
                                            <th>Date de dernière modification <i class="fa fa-sort"></i></th>

                                            <th>Action <i class="fa fa-sort"></i></th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        {% for procedure in list_procedure %}
                                            <tr>
                                                <td>{{ procedure.nomProcedure }}</td>
                                                {% if procedure.service != null %}
                                                    <td>{{ procedure.service.nomService }}</td>
                                                {% elseif procedure.user!= null %}
                                                    <td>{{ procedure.user.nomUser }}</td>
                                                {% else %}
                                                    <td>Pas de Responsable </td>
                                                {% endif %}  
                                                <td>{{ procedure.dateCreation|date("d/m/Y") }}</td>
                                                <td>{{ procedure.dateModification|date("d/m/Y") }}</td>
                                                <td><a href="{{path ('cnam_actiman_planProcedure_planifierProcedure',{'idpro': procedure.id})}}">Planifier</a></td>
                                            </tr>
                                        {% endfor %}

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    {% endblock%}
{% endblock%}
{# empty Twig template #}
